<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta charset="utf-8">
<link rel="stylesheet" href="{MODULE_URL}resource/css/style.css" />
{if $color!=""}
<link rel="stylesheet" href="{MODULE_URL}resource/css/{$color}.css" />
{/if}
<script type="text/javascript" src="{MODULE_URL}resource/js/jquery-2.1.4.min.js" ></script>
<title>{$huodongname}</title>
{php echo register_jssdk();}
<script type="text/javascript">
var ua = navigator.userAgent.toLowerCase();
var isWeixin = ua.indexOf('micromessenger') != -1;
var isAndroid = ua.indexOf('android') != -1;
var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);
<!--
if (!isWeixin) {
    document.head.innerHTML = '<title>抱歉，出错了</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"><link rel="stylesheet" type="text/css" href="https://res.wx.qq.com/open/libs/weui/0.4.1/weui.css">';
    document.body.innerHTML = '<div class="weui_msg"><div class="weui_icon_area"><i class="weui_icon_info weui_icon_msg"></i></div><div class="weui_text_area"><h4 class="weui_msg_title">请在微信客户端打开链接</h4></div></div>';
}
-->



</script>
</head>
<body>
<div class="home">
	
	<!--logo-->
	<div class="logo clearfix"><a href="{$qylink}" style="background-image:url({$_W['attachurl']}{$qylogo});">{$qyname}</a></div>
	
	<!--AD Img-->
	<div class="ad">
		<img src="{MODULE_URL}resource/images/wei.png" width="100%">
	</div>
	<div class="countdown" style="position: absolute; top: 25rem;">
		<div class="con"></div>
	</div>
	
	<!--rule-->
	<div class="rule">
		<span><i class="iconfont">&#xe601;</i> 活动规则</span>
	</div>
</div>

<!--活动介绍 start-->
<div class="popup" style="display:none ;">
	<div class="pcontent">
		<div class="tit f16">
			<div class="close fr"><i class="iconfont">&#xe606;</i></div>
			<h2 class="f16">活动介绍</h2>
		</div>
		<div class="txtBox">
		   <p>{$huodongdesc}</p>
		</div>
	</div>
</div>

<!--活动介绍 end-->

<script>
$(document).ready(function(){
	//活动介绍
	$(".rule").click(function(){
		$(".popup").show(0);
	})
	$(".popup .close").click(function(){
		$(".popup").hide(0);
	})
	$(".share,.tips").click(function(){
		$(".tips").toggle(0);
	})
	
	$(".close").click(function(){
		$(this).closest(".result").hide(0);
	})
})
var interval = 1000; 
var leftsecond={$leftsecond};

window.setInterval(function(){ShowCountDown('daojishi');}, interval); 
function ShowCountDown(divname) 
{ 
	leftsecond--;
	var day=Math.floor(leftsecond/(60*60*24)); 
	var hour=Math.floor((leftsecond-day*24*60*60)/3600); 
	var minute=Math.floor((leftsecond-day*24*60*60-hour*3600)/60); 
	var second=Math.floor(leftsecond-day*24*60*60-hour*3600-minute*60); 
	$(".con").html("活动将在：<i>"+day+"</i>天<i>"+hour+"</i>小时<i>"+minute+"</i>分<i>"+second+"</i>秒后开始"); 
} 
</script>
</body>
</html>
